/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2025-01-09
**/
@Entity
@Data
@Table(name="PRIC_RGST_TRTAPPY")
public class PricRgstTrtappy implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "PRIC_RGST_TRTAPPY_ID")
    @ApiModelProperty(value = "主键ID")
    private String pricRgstTrtappyId;

    @Column(name = "LONGTERM_TRT_APPY_ID")
    @ApiModelProperty(value = "待遇申请ID")
    private String longtermTrtAppyId;

    @Column(name = "PSN_NO")
    @ApiModelProperty(value = "人员编号")
    private String psnNo;

    @Column(name = "INSU_ADMDVS")
    @ApiModelProperty(value = "参保人员医保区划")
    private String insuAdmdvs;

    @Column(name = "PSN_NAME")
    @ApiModelProperty(value = "人员姓名")
    private String psnName;

    @Column(name = "CERT_TYPE")
    @ApiModelProperty(value = "证件类型")
    private String certType;

    @Column(name = "CERTNO")
    @ApiModelProperty(value = "证件号码")
    private String certno;

    @Column(name = "GEND")
    @ApiModelProperty(value = "性别")
    private String gend;

    @Column(name = "BRDY")
    @ApiModelProperty(value = "出生日期")
    private Date brdy;

    @Column(name = "NATY")
    @ApiModelProperty(value = "民族")
    private String naty;

    @Column(name = "ADMDVS")
    @ApiModelProperty(value = "所属医保区划")
    private String admdvs;

    @Column(name = "NAT_REGN_CODE")
    @ApiModelProperty(value = "国家地区代码")
    private String natRegnCode;

    @Column(name = "RESD_LOC_ADMDVS")
    @ApiModelProperty(value = "户口所在地行政区")
    private String resdLocAdmdvs;

    @Column(name = "RESD_ADDR")
    @ApiModelProperty(value = "户口地址")
    private String resdAddr;

    @Column(name = "LIVE_LOC_ADMDVS")
    @ApiModelProperty(value = "居住地行政区")
    private String liveLocAdmdvs;

    @Column(name = "LIVE_ADDR")
    @ApiModelProperty(value = "居住地址")
    private String liveAddr;

    @Column(name = "INSU_IDET")
    @ApiModelProperty(value = "参保身份")
    private String insuIdet;

    @Column(name = "TEL")
    @ApiModelProperty(value = "联系电话")
    private String tel;

    @Column(name = "LNT")
    @ApiModelProperty(value = "经度")
    private String lnt;

    @Column(name = "LAT")
    @ApiModelProperty(value = "纬度")
    private String lat;

    @Column(name = "FST_APPY_FLAG")
    @ApiModelProperty(value = "首次申请标志")
    private String fstAppyFlag;

    @Column(name = "LAST_APPY_FLAG")
    @ApiModelProperty(value = "最后一次申请标志")
    private String lastAppyFlag;

    @Column(name = "LONGTERM_EVAL_WAY")
    @ApiModelProperty(value = "长期护理评估方式")
    private String longtermEvalWay;

    @Column(name = "EVAL_LOC_ADMDVS")
    @ApiModelProperty(value = "评估地行政区")
    private String evalLocAdmdvs;

    @Column(name = "EVAL_ADDR")
    @ApiModelProperty(value = "评估地址")
    private String evalAddr;

    @Column(name = "NURSCARE_WAY")
    @ApiModelProperty(value = "护理方式")
    private String nurscareWay;

    @Column(name = "NURSCARE_ORG_NO")
    @ApiModelProperty(value = "护理机构编码")
    private String nurscareOrgNo;

    @Column(name = "NURSCARE_ORG_NAME")
    @ApiModelProperty(value = "护理机构名称")
    private String nurscareOrgName;

    @Column(name = "NURSCARE_ORG_LOC_ADMDVS")
    @ApiModelProperty(value = "护理机构地行政区")
    private String nurscareOrgLocAdmdvs;

    @Column(name = "NURSCARE_ORG_ADDR")
    @ApiModelProperty(value = "护理机构地址")
    private String nurscareOrgAddr;

    @Column(name = "SERV_LOC_ADMDVS")
    @ApiModelProperty(value = "服务地行政区")
    private String servLocAdmdvs;

    @Column(name = "SERV_PATH")
    @ApiModelProperty(value = "服务地址")
    private String servPath;

    @Column(name = "CRT_NURSCARE_WAY")
    @ApiModelProperty(value = "当前护理方式")
    private String crtNurscareWay;

    @Column(name = "DISE_DSCR")
    @ApiModelProperty(value = "病种描述")
    private String diseDscr;

    @Column(name = "INSUTYPE")
    @ApiModelProperty(value = "险种类型")
    private String insutype;

    @Column(name = "ACP_STAS")
    @ApiModelProperty(value = "受理状态")
    private String acpStas;

    @Column(name = "TRT_ACP_OPNN")
    @ApiModelProperty(value = "待遇受理意见")
    private String trtAcpOpnn;

    @Column(name = "UNDO_REA_CODG")
    @ApiModelProperty(value = "撤销原因编码")
    private String undoReaCodg;

    @Column(name = "UNDO_REA_DSCR")
    @ApiModelProperty(value = "撤销原因描述")
    private String undoReaDscr;

    @Column(name = "TRT_APPY_SOUC")
    @ApiModelProperty(value = "申请来源")
    private String trtAppySouc;

    @Temporal(TemporalType.DATE)
    @Column(name = "INFO_SBMT_TIME")
    @ApiModelProperty(value = "资料提交时间")
    private Date infoSbmtTime;

    @Temporal(TemporalType.DATE)
    @Column(name = "APPY_DATE")
    @ApiModelProperty(value = "申请日期")
    private Date appyDate;

    @Temporal(TemporalType.DATE)
    @Column(name = "EVAL_CCLS_VALI_ENDDATE")
    @ApiModelProperty(value = "评估结论有效截止日期")
    private Date evalCclsValiEnddate;

    @Column(name = "SELF_EVAL_LV")
    @ApiModelProperty(value = "自评等级")
    private String selfEvalLv;

    @Column(name = "SCALE_ANSR_RSLT_ID")
    @ApiModelProperty(value = "量表答案结果ID")
    private String scaleAnsrRsltId;

    @Column(name = "LONGTERM_AGNTER_ID")
    @ApiModelProperty(value = "代办人ID")
    private String longtermAgnterId;

    @Column(name = "AGNTER_NAME")
    @ApiModelProperty(value = "代办人姓名")
    private String agnterName;

    @Column(name = "AGNTER_CERT_TYPE")
    @ApiModelProperty(value = "代办人证件类型")
    private String agnterCertType;

    @Column(name = "AGNTER_CERTNO")
    @ApiModelProperty(value = "代办人证件号码")
    private String agnterCertno;

    @Column(name = "AGNTER_RLTS")
    @ApiModelProperty(value = "代办人关系")
    private String agnterRlts;

    @Column(name = "AGNTER_GEND")
    @ApiModelProperty(value = "代办人性别")
    private String agnterGend;

    @Column(name = "AGNTER_TEL")
    @ApiModelProperty(value = "代办人联系方式")
    private String agnterTel;

    @Column(name = "AGNTER_LIVE_LOC_ADMDVS")
    @ApiModelProperty(value = "代办人居住地行政区")
    private String agnterLiveLocAdmdvs;

    @Column(name = "AGNTER_LIVE_ADDR")
    @ApiModelProperty(value = "代办人居住地")
    private String agnterLiveAddr;

    @Column(name = "BIND_FLAG")
    @ApiModelProperty(value = "绑定标志")
    private String bindFlag;

    @Column(name = "OPT_DOT_ID")
    @ApiModelProperty(value = "经办网点")
    private String optDotId;

    @Column(name = "DATA_VER")
    @ApiModelProperty(value = "数据版本号")
    private Long dataVer;




    public void copy(PricRgstTrtappy source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}